﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ad/adminmaster.Master" CodeBehind="ManageMember.aspx.vb" Inherits="SanDauGia.DAL.WebForm5" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
    <table style="width: 100%; height: 100%">
        <tr>
            <td>
                <asp:Label ID="Label3" runat="server" 
                    Text="Trạng thái kích hoạt 1 là không kích hoạt,2 là kích hoạt"></asp:Label>

                <asp:Label ID="Label4" runat="server" Text="Trạng thái 1 là admin 2 là user "></asp:Label>
            </td>
        </tr>
        
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
                    DataKeyNames="MaNguoiDung" DataSourceID="ObjectDataSource1" 
                    EnableModelValidation="True" ForeColor="#333333" GridLines="None">
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                        <asp:BoundField DataField="MaNguoiDung" HeaderText="MaNguoiDung" 
                            ReadOnly="True" SortExpression="MaNguoiDung" />
                        <asp:BoundField DataField="TenDangNhap" HeaderText="TenDangNhap" 
                            SortExpression="TenDangNhap" />
                        <asp:BoundField DataField="MatKhau" HeaderText="MatKhau" 
                            SortExpression="MatKhau" />
                        <asp:BoundField DataField="HoTen" HeaderText="HoTen" SortExpression="HoTen" />
                        <asp:BoundField DataField="NgaySinh" HeaderText="NgaySinh" 
                            SortExpression="NgaySinh" />
                        <asp:BoundField DataField="CMND" HeaderText="CMND" SortExpression="CMND" />
                        <asp:BoundField DataField="DiaChi" HeaderText="DiaChi" 
                            SortExpression="DiaChi" />
                        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                        <asp:BoundField DataField="TenChuThe" HeaderText="TenChuThe" 
                            SortExpression="TenChuThe" />
                        <asp:BoundField DataField="MaThe" HeaderText="MaThe" SortExpression="MaThe" />
                        <asp:BoundField DataField="ThangNamHetHan" HeaderText="ThangNamHetHan" 
                            SortExpression="ThangNamHetHan" />
                        <asp:BoundField DataField="ChuoiKichHoat" HeaderText="ChuoiKichHoat" 
                            SortExpression="ChuoiKichHoat" />
                        <asp:BoundField DataField="TrangThaiTaiKhoan" HeaderText="TrangThaiTaiKhoan" 
                            SortExpression="TrangThaiTaiKhoan" />
                        <asp:BoundField DataField="KichHoat" HeaderText="KichHoat" 
                            SortExpression="KichHoat" />
                        <asp:BoundField DataField="LoaiThe" HeaderText="LoaiThe" 
                            SortExpression="LoaiThe" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    DeleteMethod="Delete" InsertMethod="Insert" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="SanDauGia.DAL.SanDauGiaTableAdapters.NGUOIDUNGTableAdapter" 
                    UpdateMethod="Update">
                    <DeleteParameters>
                        <asp:Parameter Name="Original_MaNguoiDung" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="MaNguoiDung" Type="Int32" />
                        <asp:Parameter Name="TenDangNhap" Type="String" />
                        <asp:Parameter Name="MatKhau" Type="String" />
                        <asp:Parameter Name="HoTen" Type="String" />
                        <asp:Parameter Name="NgaySinh" Type="DateTime" />
                        <asp:Parameter Name="CMND" Type="Int32" />
                        <asp:Parameter Name="DiaChi" Type="String" />
                        <asp:Parameter Name="Email" Type="String" />
                        <asp:Parameter Name="TenChuThe" Type="String" />
                        <asp:Parameter Name="MaThe" Type="String" />
                        <asp:Parameter Name="ThangNamHetHan" Type="DateTime" />
                        <asp:Parameter Name="ChuoiKichHoat" Type="String" />
                        <asp:Parameter Name="TrangThaiTaiKhoan" Type="Int32" />
                        <asp:Parameter Name="KichHoat" Type="Int32" />
                        <asp:Parameter Name="LoaiThe" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="TenDangNhap" Type="String" />
                        <asp:Parameter Name="MatKhau" Type="String" />
                        <asp:Parameter Name="HoTen" Type="String" />
                        <asp:Parameter Name="NgaySinh" Type="DateTime" />
                        <asp:Parameter Name="CMND" Type="Int32" />
                        <asp:Parameter Name="DiaChi" Type="String" />
                        <asp:Parameter Name="Email" Type="String" />
                        <asp:Parameter Name="TenChuThe" Type="String" />
                        <asp:Parameter Name="MaThe" Type="String" />
                        <asp:Parameter Name="ThangNamHetHan" Type="DateTime" />
                        <asp:Parameter Name="ChuoiKichHoat" Type="String" />
                        <asp:Parameter Name="TrangThaiTaiKhoan" Type="Int32" />
                        <asp:Parameter Name="KichHoat" Type="Int32" />
                        <asp:Parameter Name="LoaiThe" Type="String" />
                        <asp:Parameter Name="Original_MaNguoiDung" Type="Int32" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%; height: 42px;">
                    <tr>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <tr>
    </tr>
</asp:Content>
